package com.xzssmk.leisure.x.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PresentReceiveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PresentReceiveExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPresentIdIsNull() {
            addCriterion("present_id is null");
            return (Criteria) this;
        }

        public Criteria andPresentIdIsNotNull() {
            addCriterion("present_id is not null");
            return (Criteria) this;
        }

        public Criteria andPresentIdEqualTo(Integer value) {
            addCriterion("present_id =", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdNotEqualTo(Integer value) {
            addCriterion("present_id <>", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdGreaterThan(Integer value) {
            addCriterion("present_id >", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("present_id >=", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdLessThan(Integer value) {
            addCriterion("present_id <", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdLessThanOrEqualTo(Integer value) {
            addCriterion("present_id <=", value, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdIn(List<Integer> values) {
            addCriterion("present_id in", values, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdNotIn(List<Integer> values) {
            addCriterion("present_id not in", values, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdBetween(Integer value1, Integer value2) {
            addCriterion("present_id between", value1, value2, "presentId");
            return (Criteria) this;
        }

        public Criteria andPresentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("present_id not between", value1, value2, "presentId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdIsNull() {
            addCriterion("inventory_id is null");
            return (Criteria) this;
        }

        public Criteria andInventoryIdIsNotNull() {
            addCriterion("inventory_id is not null");
            return (Criteria) this;
        }

        public Criteria andInventoryIdEqualTo(Integer value) {
            addCriterion("inventory_id =", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdNotEqualTo(Integer value) {
            addCriterion("inventory_id <>", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdGreaterThan(Integer value) {
            addCriterion("inventory_id >", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("inventory_id >=", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdLessThan(Integer value) {
            addCriterion("inventory_id <", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("inventory_id <=", value, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdIn(List<Integer> values) {
            addCriterion("inventory_id in", values, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdNotIn(List<Integer> values) {
            addCriterion("inventory_id not in", values, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdBetween(Integer value1, Integer value2) {
            addCriterion("inventory_id between", value1, value2, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andInventoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("inventory_id not between", value1, value2, "inventoryId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdIsNull() {
            addCriterion("presenter_id is null");
            return (Criteria) this;
        }

        public Criteria andPresenterIdIsNotNull() {
            addCriterion("presenter_id is not null");
            return (Criteria) this;
        }

        public Criteria andPresenterIdEqualTo(Integer value) {
            addCriterion("presenter_id =", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdNotEqualTo(Integer value) {
            addCriterion("presenter_id <>", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdGreaterThan(Integer value) {
            addCriterion("presenter_id >", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("presenter_id >=", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdLessThan(Integer value) {
            addCriterion("presenter_id <", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdLessThanOrEqualTo(Integer value) {
            addCriterion("presenter_id <=", value, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdIn(List<Integer> values) {
            addCriterion("presenter_id in", values, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdNotIn(List<Integer> values) {
            addCriterion("presenter_id not in", values, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdBetween(Integer value1, Integer value2) {
            addCriterion("presenter_id between", value1, value2, "presenterId");
            return (Criteria) this;
        }

        public Criteria andPresenterIdNotBetween(Integer value1, Integer value2) {
            addCriterion("presenter_id not between", value1, value2, "presenterId");
            return (Criteria) this;
        }

        public Criteria andOwnTypeIsNull() {
            addCriterion("own_type is null");
            return (Criteria) this;
        }

        public Criteria andOwnTypeIsNotNull() {
            addCriterion("own_type is not null");
            return (Criteria) this;
        }

        public Criteria andOwnTypeEqualTo(Byte value) {
            addCriterion("own_type =", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeNotEqualTo(Byte value) {
            addCriterion("own_type <>", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeGreaterThan(Byte value) {
            addCriterion("own_type >", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("own_type >=", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeLessThan(Byte value) {
            addCriterion("own_type <", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeLessThanOrEqualTo(Byte value) {
            addCriterion("own_type <=", value, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeIn(List<Byte> values) {
            addCriterion("own_type in", values, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeNotIn(List<Byte> values) {
            addCriterion("own_type not in", values, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeBetween(Byte value1, Byte value2) {
            addCriterion("own_type between", value1, value2, "ownType");
            return (Criteria) this;
        }

        public Criteria andOwnTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("own_type not between", value1, value2, "ownType");
            return (Criteria) this;
        }

        public Criteria andReceiveIdIsNull() {
            addCriterion("receive_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiveIdIsNotNull() {
            addCriterion("receive_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveIdEqualTo(Integer value) {
            addCriterion("receive_id =", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdNotEqualTo(Integer value) {
            addCriterion("receive_id <>", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdGreaterThan(Integer value) {
            addCriterion("receive_id >", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("receive_id >=", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdLessThan(Integer value) {
            addCriterion("receive_id <", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdLessThanOrEqualTo(Integer value) {
            addCriterion("receive_id <=", value, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdIn(List<Integer> values) {
            addCriterion("receive_id in", values, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdNotIn(List<Integer> values) {
            addCriterion("receive_id not in", values, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdBetween(Integer value1, Integer value2) {
            addCriterion("receive_id between", value1, value2, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("receive_id not between", value1, value2, "receiveId");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIsNull() {
            addCriterion("receive_time is null");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIsNotNull() {
            addCriterion("receive_time is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeEqualTo(Date value) {
            addCriterion("receive_time =", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotEqualTo(Date value) {
            addCriterion("receive_time <>", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeGreaterThan(Date value) {
            addCriterion("receive_time >", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("receive_time >=", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeLessThan(Date value) {
            addCriterion("receive_time <", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeLessThanOrEqualTo(Date value) {
            addCriterion("receive_time <=", value, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeIn(List<Date> values) {
            addCriterion("receive_time in", values, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotIn(List<Date> values) {
            addCriterion("receive_time not in", values, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeBetween(Date value1, Date value2) {
            addCriterion("receive_time between", value1, value2, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andReceiveTimeNotBetween(Date value1, Date value2) {
            addCriterion("receive_time not between", value1, value2, "receiveTime");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeIsNull() {
            addCriterion("verify_code is null");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeIsNotNull() {
            addCriterion("verify_code is not null");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeEqualTo(String value) {
            addCriterion("verify_code =", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeNotEqualTo(String value) {
            addCriterion("verify_code <>", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeGreaterThan(String value) {
            addCriterion("verify_code >", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("verify_code >=", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeLessThan(String value) {
            addCriterion("verify_code <", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeLessThanOrEqualTo(String value) {
            addCriterion("verify_code <=", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeLike(String value) {
            addCriterion("verify_code like", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeNotLike(String value) {
            addCriterion("verify_code not like", value, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeIn(List<String> values) {
            addCriterion("verify_code in", values, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeNotIn(List<String> values) {
            addCriterion("verify_code not in", values, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeBetween(String value1, String value2) {
            addCriterion("verify_code between", value1, value2, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andVerifyCodeNotBetween(String value1, String value2) {
            addCriterion("verify_code not between", value1, value2, "verifyCode");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeIsNull() {
            addCriterion("modifiy_time is null");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeIsNotNull() {
            addCriterion("modifiy_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeEqualTo(Date value) {
            addCriterion("modifiy_time =", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeNotEqualTo(Date value) {
            addCriterion("modifiy_time <>", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeGreaterThan(Date value) {
            addCriterion("modifiy_time >", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modifiy_time >=", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeLessThan(Date value) {
            addCriterion("modifiy_time <", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modifiy_time <=", value, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeIn(List<Date> values) {
            addCriterion("modifiy_time in", values, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeNotIn(List<Date> values) {
            addCriterion("modifiy_time not in", values, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeBetween(Date value1, Date value2) {
            addCriterion("modifiy_time between", value1, value2, "modifiyTime");
            return (Criteria) this;
        }

        public Criteria andModifiyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modifiy_time not between", value1, value2, "modifiyTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}